/*BGN data; models 2 and 4 (using scount) */
/*You will need to change the directories below to account for your directory structure*/


/* model #2 from final paper (pg 46 draft) CORRECT  */
%INCLUDE "H:\My Documents\My SAS Files\9\Macro_TVEM_v210\Macro_TVEM_v210_logistic.sas";
libname work "H:\My Documents\My SAS Files\9\"; 

%TVEM_logistic (
  mydata = work.bgn_full_small, 
  id = dyadid, 
  time = year, 
   dep = force, 
   tcov = intercept Scount, 
   cov_knots = 6 6,  
   cov = low_polity2 noncontiguity low_depend_ksg2,
  evenly = 0,  
   scale = 100,  
  oddsratio = 0, 
  outfilename = model_2_finaldraft_p46_bgn.csv);      

/***************************************/

/*model 4 from final paper */
%INCLUDE "H:\My Documents\My SAS Files\9\Macro_TVEM_v210\Macro_TVEM_v210_logistic.sas";
libname work "H:\My Documents\My SAS Files\9\"; 

%TVEM_logistic (
  mydata = work.bgn_full_small, 
  id = dyadid, 
  time = year, 
   dep = fatalmid, 
   tcov = intercept scount, 
   cov_knots = 6 6,  
   cov = low_polity2 noncontiguity low_depend_ksg2,
  evenly = 0,  
   scale = 100,  
  oddsratio = 0, 
  outfilename = model_4_finaldraft_p48_bgn.csv);    
    
/***************************************/
